package com.gurun.codes.business.water;

import android.content.Context;
import android.text.TextUtils;

import com.gurun.codes.App;
import com.gurun.codes.R;
import com.gurun.codes.contract.base.BaseAlarmListPresenter;
import com.gurun.codes.contract.base.view.RxView;
import com.gurun.codes.utils.Constants;
import com.gurun.model.base.ResultObserver;
import com.gurun.model.base.RetrofitManager;
import com.gurun.model.bean.ApiResult;
import com.gurun.model.bean.common.GetDeviceAlarmInfoListResultBean;
import com.gurun.model.bean.door_window.GetDoorWindowInfoRequestBean;
import com.gurun.model.bean.door_window.GetDoorWindowInfoResultBean;
import com.gurun.model.bean.water_enter.GetWaterEnterInfoRequestBean;
import com.gurun.model.bean.water_enter.GetWaterEnterInfoResultBean;
import com.gurun.model.service.DoorWindowService;
import com.gurun.model.service.WaterEnterService;

import java.util.ArrayList;
import java.util.List;

import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;

public interface WaterEnterActivityContract {

    interface WaterEnterActivityActivityView extends RxView {

        void onLoading();

        void onLoaded(GetDeviceAlarmInfoListResultBean datas);

        void onError(String msg);

        void onComplete();

        void resetListDatas();
    }

    class WaterEnterActivityActivityViewPresenter extends BaseAlarmListPresenter<WaterEnterActivityActivityView> {

        public WaterEnterActivityActivityViewPresenter(Context context) {
            this.mContext = context;
        }

        @Override
        protected void onMLoading() {
            getView().onLoading();
        }

        @Override
        protected void onMLoaded(GetDeviceAlarmInfoListResultBean datas) {
            getView().onLoaded(datas);
        }

        @Override
        protected void onMError(String msg) {
            getView().onError(msg);
        }

        @Override
        protected void onMComplete() {
            getView().onComplete();
        }

        @Override
        protected void mResetListDatas() {
            getView().resetListDatas();
        }
    }

}
